package com.project.demo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.demo.entity.Admin;
import com.project.demo.entity.Product;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.PathVariable;

public interface ProductMapper extends BaseMapper<Product> {


    @Insert("insert into product values(null,#{zcid},#{zcname},#{money},#{zcclass},#{zcperson},#{begint},null)")
    Integer insertVo(Integer id,String zcid,String zcname,Integer money,String zcclass,String zcperson,String begint);
    @Delete("delete from statistics.product where id=#{id}")
    Integer deleteVo(Integer id);
}



